<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"%>
<form class="corner3" action="<spring:url value="/thanh-vien/xu-ly-cap-nhat-thong-tin.htm" />" method="post">
	<fieldset class="corner3">
		<legend align="center">Thông tin cá nhân</legend>		
		<article id="boxDetailInfo" class="corner3">
			<div id="boxInfoPersonal">
				<section>
					<label>&nbsp;</label>
					<span style="color:red">${notice}</span>
				</section>
				<section>
					<label for="fullName">Họ tên: </label>
					<input type="text" value="${userInfo.fullName}" id="fullName" name="fullName" placeholder="Nhập họ tên..." />
				</section>
				<section>
					<label for="address">Địa chỉ: </label>
					<input type="text" value="${userInfo.address}" id="address" name="address" placeholder="Nhập địa chỉ..." />
				</section>
				<section>
					<label for="mobile">Số đt: </label>
					<input type="text" value="${userInfo.mobile}" id="mobile" name="mobile" class="validate[custom[phone]]" placeholder="Nhập số điện thoại..." />
				</section>
				<section>
					<label for="birthDay">Ngày sinh : </label>
					<input type="text" value='<fmt:formatDate pattern="dd/MM/yyyy" value="${userInfo.birthDay}" />' id="birthDay" name="birthDay" placeholder="Nhập ngày sinh..." />
				</section>
				<section>
					<label>Tôi thích: </label>
					<select name="sex" id="sex">
						<option value="true" <c:if test="${userInfo.sex == true}">selected="selected"</c:if>>Nữ</option>
						<option value="false" <c:if test="${userInfo.sex == false}">selected="selected"</c:if>>Nam</option>
					</select>
				</section>
				<section>
					<label>&nbsp;</label>
					<input type="hidden" value="${userInfo.id}" id="id" name="id" class="validate[required]" />
					<button class="corner buttonOrange" type="submit" name="btUpdate" id="btUpdate">Cập nhật</button>
				</section>
			</div>
		</article>
		<h6 class="clear">&nbsp;</h6>
	</fieldset>
</form>